//
//  FunCell.m
//  LoveTourism
//
//  Created by qianfeng0 on 16/6/24.
//  Copyright © 2016年 王超. All rights reserved.
//

#import "FunCell.h"
#import "FunModel.h"
#import <UIImageView+WebCache.h>

@interface FunCell ()
@property (weak, nonatomic) IBOutlet UIImageView *PicimageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *PriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *DayLabel;
@property (weak, nonatomic) IBOutlet UILabel *TypeLabel;
@property (weak, nonatomic) IBOutlet UILabel *TeamLabel;


@end
@implementation FunCell

- (void)setModel:(FunModel *)model {
    
    _model = model;
    
    _titleLabel.text = model.subject;
    _PriceLabel.text = [NSString stringWithFormat:@"价格:%@",model.price];
    _DayLabel.text = [NSString stringWithFormat:@"日期:%@",model.timerange];
    _TypeLabel.text = [NSString stringWithFormat:@"类型:%@",model.property];
    _TeamLabel.text = [NSString stringWithFormat:@"领队:%@",model.leaderuname];
    
    [_PicimageView sd_setImageWithURL:[NSURL URLWithString:model.imgurl] placeholderImage:[UIImage imageNamed:@"placeholder@2x"]];
    _PicimageView.layer.cornerRadius = 10;
    _PicimageView.layer.masksToBounds = YES;
    
}

@end
















